package com.kevin.transaction;

import java.sql.Connection;
import java.util.Properties;

import javax.sql.DataSource;

import com.kevin.enums.transaction.TransactionIsolationLevel;

public interface TransactionFactory {

	void setProperties(Properties props);

	Transaction newTransaction(Connection conn);

	Transaction newTransaction(DataSource dataSource, TransactionIsolationLevel level, boolean autoCommit);
}
